-- GENERATED SPELL FOR [Aged Magnataur] --


function spell0_24954(pUnit, Event) --@Plague Cloud,Self--
pUnit:FullCastSpellOnTarget(50366,pUnit)
pUnit:RegisterEvent('Sorts_24954', 0, 1)
end

function Sorts_24954(pUnit, Event)
local choix_sorts_24954 = math.random(0, 0)
if choix_sorts_24954 == 0 then
pUnit:RegisterEvent('spell0_24954', 1, 1)
end
end

function mob24954_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24954', math.random(1500, 3000), 1)
end

function mob24954_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24954_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24954_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24954, 1, 'mob24954_Action')
RegisterUnitEvent(24954, 2, 'mob24954_Leave')
RegisterUnitEvent(24954, 3, 'mob24954_Kill')
RegisterUnitEvent(24954, 4, 'mob24954_Die')
